//
//  JONumber.cpp
//  JOlib
//
//  Created by Pang Jun on 12/1/12.
//  Copyright (c) 2012 Pang Jun. All rights reserved.
//

#include "pj_number.h"

JONumber::JONumber(int val)
{
    type = "int";
    
    value = &val;
}

int JONumber::Length()
{
    return len;
}

int JONumber::IntValue()
{
    return *(int*)value;
}